home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: larry.inf.net!larry
- From: Lawrence O'Leary <larry@larry.inf.net>
- Subject: array of struct
- Message-ID: <Pine.LNX.3.91.960319173746.16221A-100000@larry.inf.net>
- Date: Tue, 19 Mar 1996 17:46:08 -0600
- MIME-Version: 1.0
- Content-Type: TEXT/PLAIN; charset=US-ASCII
-
-
- I have a question... though it is petty it bothers me greatly. :(
-
- How would I create a runtime defined array of struct.
-
- What I want to do is create each record in the array by reading a line
- from a file and storing each field of the line into the record. Do this
- for every line in the file and then where done. What I need to do is
- create the array of the struct for the exact number of lines that are in
- the file. This way I won't be wasting memory and I won't have to worry
- about not having enough records to store the lines into.
-
- You follow? <G>
-
- Thanks in advance.
-
- larry@larry.inf.net
- larry@izone.net
-
-